meta_later_add() is modelled after g_idle_add() and friends, and
the handler's boolean return value determines whether it should
be scheduled again or removed. There are some places where we omit
the return value, add them (although the implicit return value of
"undefined" already gives us the intended result).
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/637
this._grid.currentPage = 0;
this._pageIndicators.setNPages(this._grid.nPages());
this._pageIndicators.setCurrentPage(0);
+ return GLib.SOURCE_REMOVE;
});
}
box.connect('notify::height', () => {
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
box.width = box.height;
+ return GLib.SOURCE_REMOVE;
});
});
for (let i in this._items) {
this._items[i].icon.setIconSize(newIconSize);
}
+ return GLib.SOURCE_REMOVE;
}
});
}
_queueResize() {
- Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => this._resize());
+ Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
+ this._resize();
+ return GLib.SOURCE_REMOVE;
+ });
}
_resize() {
return;
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
this.lock(false);
+ return GLib.SOURCE_REMOVE;
});
}
};